﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="YeniGiris.aspx.cs" Inherits="YeniGiris" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <ext:Panel 
        ID="Panel2" 
        runat="server" 
        Title="LOGIN" 
        Width="300" 
        Height="185"
        Frame="true">

        <Content>
            <asp:Login ID="Login1" runat="server" FailureText="Username or Password is Wrong! Please Try Again.">
                <LayoutTemplate>
                    <table cellpadding="2" cellspacing="0">
                        <tr>
                            <td>
                                <table cellpadding="5">
                                    <tr>
                                        <td align="center" colspan="2" style="font-family: Calibri; color: #808080">
                                            <b></b>
                                        </td>
                                    </tr>
                                    <%--<tr>
                                        <td align="right" style="font-family: Calibri; color: #808080">
                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Kullanıcı Adı:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>--%>
                                    <tr>
                                        <ext:TextField ID="UserName" runat="server" FieldLabel="Username" AllowBlank="false"
                                            BlankText="Your username is required." AnchorHorizontal="100%" />
                                    </tr>
                                    <tr>
                                        <ext:TextField ID="Password" runat="server" InputType="Password" FieldLabel="Password"
                                            AllowBlank="false" BlankText="Your password is required." AnchorHorizontal="100%" />
                                    </tr>
                                    <%--<tr>
                                        <td align="right" style="font-family: Calibri; color: #808080">
                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Şifre:</asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                        </td>
                                    </tr>--%>
                                    <tr>
                                        <td align="center" colspan="2" style="color: Red;">
                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" colspan="2">
                                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login"
                                                ValidationGroup="Login1" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
            </asp:Login>
        </Content>
    </ext:Panel>
</asp:Content>
